package com.ysd.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ysd.dao.impl.HomeInfoDao;
import com.ysd.entity.HomeInfo;


@WebServlet("/FooterServlet")
public class FooterServlet extends HttpServlet {
	HomeInfoDao dao=new HomeInfoDao();
	protected void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
		HomeInfo hi=dao.getAllIndex();
		request.setAttribute("home", hi);
		request.getRequestDispatcher("footer.jsp").include(request, response);
	}

}
